﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
     
    public class UserService
    {
        private static readonly UserController db = new UserController();
		#region[User_GetById]
		public static DataTable User_GetById(string Id)
		{
			return db.User_GetById(Id);
		}
		#endregion
		#region[User_GetByAll]
		public static DataTable User_GetByAll()
		{
			return db.User_GetByAll();
		}
		#endregion
		#region[User_GetByTop]
		public static DataTable User_GetByTop( string Where)
		{
			return db.User_GetByTop( Where);}
		#endregion

        #region[User_CheckLogin]
        public static DataTable User_CheckLogin(string UserName,string Password)
        {
            return db.User_CheckLogin(UserName,Password);
        }
        #endregion
		#region[User_Insert]
		public static void User_Insert(UserInfo Data)
		{
			 db.User_Insert(Data);
		}
		#endregion
		#region[User_Update]
		public static void User_Update(UserInfo Data)
		{
			 db.User_Update(Data);
		}
		#endregion
		#region[User_Delete]
		public static void User_Delete(string Id)
		{
			 db.User_Delete(Id);
		}
		#endregion
	}
    
}
